import request from '@/utils/request.js'

// 企业登录
export function companyLogin(data) {
	return request({
		url: '/auth/company/login',
		method: 'POST',
		data
	})
}

// 学生登录
export function studentLogin(data) {
	return request({
		url: '/auth/student/login',
		method: 'POST',
		data
	})
}

// 退出登录
export function logout(data) {
	return request({
		url: '/auth/logout',
		method: 'GET',
		data
	})
}

// 获取用户信息
export function getUserInfo() {
	return request({ url: '/user/info' })
}

// 更新用户信息
export function updateUserInfo(data) {
	return request({
		url: '/user/update',
		method: 'POST',
		data
	})
}